package com.fy.oa.zc.service;

import java.util.Set;

import com.fy.oa.zc.manager.FyOA_FormEventManager;
//import com.seeyon.apps.collaboration.event.AbstractCollaborationEvent;

public final class FyOAFormHandlerAccessImpl implements FyOAFormHandlerAccess {
	private Set<String> templateCodes;
	private Set<String> eventNames;
	private FyOA_FormEventManager fyOA_FormEventManager;

	public FyOA_FormEventManager getFyOA_FormEventManager() {
		return fyOA_FormEventManager;
	}

	public void setFyOA_FormEventManager(FyOA_FormEventManager fyOA_FormEventManager) {
		this.fyOA_FormEventManager = fyOA_FormEventManager;
	}

	@Override
	public boolean checkTemplateCode(String code) {
		return templateCodes.contains(code);
	}

	@Override
	public boolean checkEvent(String eventName) {
		return eventNames.contains(eventName);
	}

	@Override
	public void setTemplateCodes(Set<String> templateCodes) {
		this.templateCodes = templateCodes;
	}

	@Override
	public void setEventNames(Set<String> eventNames) {
		this.eventNames = eventNames;
	}

}
